package mrusanov.player

class DamageTypeResistance(val resistances:Map[DamageType, Int]) {

  def damageTaken(damage:Int, damageType:DamageType):Int = {
    val resistance = resistances(damageType)
    damage * (100 - resistance) / 100
  }

}
